package cn.sciento.farm.devicemanager.service;

import cn.sciento.farm.devicemanager.dao.entity.DevTimerLog;
import cn.sciento.farm.devicemanager.dao.model.PageConditionQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @author Walton
 * @since 2020/10/15 18:03
 */
public interface TimerLogService {
    int insert(DevTimerLog switchTimerLog);

    /**
     * 获取定时任务触发日志
     * @param pageConditionQuery PageConditionQuery
     * @return IPage
     */
    IPage<DevTimerLog> getTimerLog(PageConditionQuery pageConditionQuery);

    /**
     * 删除定时任务日志
     * @param startTime 开始时间
     * @return
     */
    int batchDeleteLogByStartTime(long startTime);
}
